package com.destroystokyo.paper.event.entity;

import org.bukkit.entity.Entity;
import org.bukkit.entity.Player;
import org.bukkit.event.entity.EntityDamageEvent.DamageCause;

public class EntityAttackedPlayerEvent extends EntityAttackedEntityEvent {
    public EntityAttackedPlayerEvent(Entity attacker, Player victim,
                                     DamageCause cause, double damage) {
        super(attacker, victim, cause, damage);
    }

    @Override
    public Player getVictim() {
        return (Player) super.getVictim();
    }
}